-- GENERATED SPELL FOR [Bjomolf] --


function spell0_24516(pUnit, Event) --@Gnaw Bone,n/a--
pUnit:FullCastSpellOnTarget(50046,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24516', 618, 1)
end

function Sorts_24516(pUnit, Event)
local choix_sorts_24516 = math.random(0, 0)
if choix_sorts_24516 == 0 then
pUnit:RegisterEvent('spell0_24516', 1, 1)
end
end

function mob24516_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24516', math.random(1500, 3000), 1)
end

function mob24516_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24516_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24516_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24516, 1, 'mob24516_Action')
RegisterUnitEvent(24516, 2, 'mob24516_Leave')
RegisterUnitEvent(24516, 3, 'mob24516_Kill')
RegisterUnitEvent(24516, 4, 'mob24516_Die')
